Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify startup fail #304

Merged
merged 15 commits into from
Aug 12, 2023
Merged

Notify startup fail #304

merged 15 commits into from
Aug 12, 2023

Conversation

seliayeu
Copy link
Contributor

Added a cross-platform notification when Tauri fails to launch. Rather ugly on Windows since it looks like apps that aren't installed don't have a "AppUserModeId" which is what Windows seems to use identify the app behind the notification and add its name/icon to the banner. Currently just says "Windows Powershell". Also seems to support an additional type of icon as a cross-platform feature but couldn't get it working on Windows ☹️.

@netlify
Copy link

netlify bot commented Jul 15, 2023

Deploy Preview for lodestone-dashboard ready!

Name Link
🔨 Latest commit deb158a
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-dashboard/deploys/64c9d1585f781f0008b467c9
😎 Deploy Preview https://deploy-preview-304--lodestone-dashboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jul 15, 2023

Deploy Preview for lodestone-storybook ready!

Name Link
🔨 Latest commit deb158a
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-storybook/deploys/64c9d158c797f600081e703c
😎 Deploy Preview https://deploy-preview-304--lodestone-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Ynng Ynng self-requested a review July 16, 2023 06:12
Copy link
Member

@Ynng Ynng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@CheatCod CheatCod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion, but your PR should:

  1. Make the run method in core return a Result<..., Error>
  2. Match the result of running core on Tauri
  3. If the result is Err then display a popup before shutting down the app

@Ynng
Copy link
Member

Ynng commented Jul 23, 2023

Is this ready for review again?
And can we resolve the merge conflict

@seliayeu seliayeu linked an issue Jul 23, 2023 that may be closed by this pull request
Copy link
Member

@Ynng Ynng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll build it locally and try it when I get back

dashboard/src-tauri/src/main.rs Outdated Show resolved Hide resolved
core/src/lib.rs Show resolved Hide resolved
Copy link
Member

@Ynng Ynng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my machine, just some minor things

dashboard/src-tauri/src/main.rs Outdated Show resolved Hide resolved
dashboard/src-tauri/src/main.rs Outdated Show resolved Hide resolved
dashboard/src-tauri/src/main.rs Outdated Show resolved Hide resolved
@seliayeu seliayeu requested a review from Ynng July 31, 2023 00:53
@Ynng Ynng self-requested a review August 2, 2023 00:37
dashboard/src-tauri/src/main.rs Outdated Show resolved Hide resolved
@seliayeu seliayeu requested a review from Ynng August 5, 2023 17:38
Copy link
Member

@Ynng Ynng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! tested both normal launch bad launch in fedora

@seliayeu seliayeu merged commit 4257a1f into dev Aug 12, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a screen for when core couldnt start
3 participants